typecast (someone) based on (something)

Translations
cataloguer quelqu’un en fonction de quelque chose